new function. Long name.
authorJonathan Blandford <jrb@redhat.com>
Mon, 1 Mar 2004 21:35:25 +0000 (21:35 +0000)
committerJonathan Blandford <jrb@src.gnome.org>
Mon, 1 Mar 2004 21:35:25 +0000 (21:35 +0000)
Mon Mar  1 16:32:52 2004  Jonathan Blandford  <jrb@redhat.com>

        * gtk/gtkfilechooserwidget.c
        (gtk_file_chooser_widget_new_with_backend): new function.  Long
        name.

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtkfilechooserwidget.c
gtk/gtkfilechooserwidget.h

index f698631700005ec84f3c74e10f4cd9780d0aa6a4..4a4baf9385322de3e8a2a03cdf18ae60cbadbd86 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Mon Mar  1 16:32:52 2004  Jonathan Blandford  <jrb@redhat.com>
+
+       * gtk/gtkfilechooserwidget.c
+       (gtk_file_chooser_widget_new_with_backend): new function.  Long
+       name.
+
 2004-03-01  Morten Welinder  <terra@gnome.org>
 
        * gtk/gtkfilesystemunix.c (filename_get_info): Only stat when
index f698631700005ec84f3c74e10f4cd9780d0aa6a4..4a4baf9385322de3e8a2a03cdf18ae60cbadbd86 100644 (file)
@@ -1,3 +1,9 @@
+Mon Mar  1 16:32:52 2004  Jonathan Blandford  <jrb@redhat.com>
+
+       * gtk/gtkfilechooserwidget.c
+       (gtk_file_chooser_widget_new_with_backend): new function.  Long
+       name.
+
 2004-03-01  Morten Welinder  <terra@gnome.org>
 
        * gtk/gtkfilesystemunix.c (filename_get_info): Only stat when
index f698631700005ec84f3c74e10f4cd9780d0aa6a4..4a4baf9385322de3e8a2a03cdf18ae60cbadbd86 100644 (file)
@@ -1,3 +1,9 @@
+Mon Mar  1 16:32:52 2004  Jonathan Blandford  <jrb@redhat.com>
+
+       * gtk/gtkfilechooserwidget.c
+       (gtk_file_chooser_widget_new_with_backend): new function.  Long
+       name.
+
 2004-03-01  Morten Welinder  <terra@gnome.org>
 
        * gtk/gtkfilesystemunix.c (filename_get_info): Only stat when
index f698631700005ec84f3c74e10f4cd9780d0aa6a4..4a4baf9385322de3e8a2a03cdf18ae60cbadbd86 100644 (file)
@@ -1,3 +1,9 @@
+Mon Mar  1 16:32:52 2004  Jonathan Blandford  <jrb@redhat.com>
+
+       * gtk/gtkfilechooserwidget.c
+       (gtk_file_chooser_widget_new_with_backend): new function.  Long
+       name.
+
 2004-03-01  Morten Welinder  <terra@gnome.org>
 
        * gtk/gtkfilesystemunix.c (filename_get_info): Only stat when
index f698631700005ec84f3c74e10f4cd9780d0aa6a4..4a4baf9385322de3e8a2a03cdf18ae60cbadbd86 100644 (file)
@@ -1,3 +1,9 @@
+Mon Mar  1 16:32:52 2004  Jonathan Blandford  <jrb@redhat.com>
+
+       * gtk/gtkfilechooserwidget.c
+       (gtk_file_chooser_widget_new_with_backend): new function.  Long
+       name.
+
 2004-03-01  Morten Welinder  <terra@gnome.org>
 
        * gtk/gtkfilesystemunix.c (filename_get_info): Only stat when
index 9054ae98be64050a10153ca6b5fe4c2a9e1dc52d..631a4b7500fae5fa8e7a19120fbe4bd04f7148d2 100644 (file)
@@ -221,3 +221,28 @@ gtk_file_chooser_widget_new (GtkFileChooserAction action)
                       "action", action,
                       NULL);
 }
+
+/**
+ * gtk_file_chooser_widget_new:
+ * @action: Open or save mode for the widget
+ * @backend: The name of the specific filesystem backend to use.
+ * 
+ * Creates a new #GtkFileChooserWidget with a specified backend.  This is
+ * especially useful if you use gtk_file_chooser_set_local_only() to allow
+ * non-local files.  This is a file chooser widget that can be embedded in
+ * custom windows and it is the same widget that is used by
+ * #GtkFileChooserDialog.
+ * 
+ * Return value: a new #GtkFileChooserWidget
+ *
+ * Since: 2.4
+ **/
+GtkWidget *
+gtk_file_chooser_widget_new_with_backend (GtkFileChooserAction  action,
+                                         const gchar          *backend)
+{
+  return g_object_new (GTK_TYPE_FILE_CHOOSER_WIDGET,
+                      "action", action,
+                      "file-system-backend", backend,
+                      NULL);
+}
index e52fc11fce45d1cef0dfe6b049ba0eca1f6159e8..49748430964f0b7c2c3c0bffc3d992298cfa8d62 100644 (file)
@@ -50,9 +50,11 @@ struct _GtkFileChooserWidget
   GtkFileChooserWidgetPrivate *priv;
 };
 
-GType      gtk_file_chooser_widget_get_type (void);
-GtkWidget *gtk_file_chooser_widget_new      (GtkFileChooserAction action);
-
+GType      gtk_file_chooser_widget_get_type         (void);
+GtkWidget *gtk_file_chooser_widget_new              (GtkFileChooserAction  action);
+GtkWidget *gtk_file_chooser_widget_new_with_backend (GtkFileChooserAction  action,
+                                                    const gchar          *backend);
 G_END_DECLS
 
 #endif /* __GTK_FILE_CHOOSER_WIDGET_H__ */
+1